package org.travel.travel2gether.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.validation.constraints.NotNull;

@Entity
@SuppressWarnings("serial")
public class Blob extends BaseEntity {
	@NotNull
	@Column(unique = true)
	private String key;
	
	@Column(name = "FILE_NAME")
	@NotNull
	private String fileName;
	
	@Column(name = "CONTENT_TYPE")
	@NotNull
	private String contentType;
	
	@Lob
	@NotNull
	private byte[] bytes;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public byte[] getBytes() {
		return bytes;
	}

	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}
}
